package com.boang.time;

import java.time.LocalDate;
import java.time.LocalTime;

/*
  @author: 13813
  @date: 2024/11/22 10:09
*/
public class LocalTimeDemo {
    public static void main(String[] args) {
        //当前时间
        LocalTime now = LocalTime.now();
        System.out.println(now);
        //指定时间
        LocalTime localTime = LocalTime.of(11, 50, 0);
        System.out.println(localTime);
    }
}
